﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowTypeSite.aspx.cs" Inherits="SiteInfo_ShowTypeSite" %>


<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <title></title>
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript" language="javascript"></script>
    <script src="../js/jquery.query.url.js" type="text/javascript" language="javascript"></script>
    <script>
        $(document).ready(function () {
            $("#btnSelect").click(function () {
                var id = $("#txtId").val()
                id = encodeURI(id);
                var name = $("#txtName").val();
                name = encodeURI(name);
                var url = "ShowTypeSite.aspx?";
                var con = "";
                if (id != "") {
                    if (con != "") {
                        con += "&stid=" + id;
                    }
                    else {
                        con = "stid=" + id;
                    }
                }
                if (name != "") {
                    if (con != "") {
                        con += "&name=" + name;
                    }
                    else {
                        con = "name=" + name;
                    }
                }

                document.location = url + con;
            })
        })
    </script>
     <script>
         $(document).ready(function () {
             $("#btnBack").click(function () {
                 document.location = "../SiteNavigation/default.aspx";
             })
         })
    </script>
    <style type="text/css">
        .style1
        {
            width: 136px;
        }
        .style2
        {
            text-align: center;
            width: 136px;
        }
    </style>
    </head>
<body>
    <form id="form1" runat="server">
    <div>
     <div class="button_bar">
    <%--<asp:Button ID="btnAdd" CssClass="common_button" runat="server" Text="添加" OnClientClick="document.location='add.aspx';return false;" />--%>
    <input type="button" class="common_button" id="btnBack" value="返回"/>
	<input type="button" id="btnSelect" value="查询" class="common_button" />
    </div>
        <table class="query_form_table">
            <tr>
                <th>
                    所属分类编号</th>
                <td>
                    <input type="text" id="txtId" />
                </td>
                <th>
                    所属分类名称
                </th>
                <td>
                    <input type="text" id="txtName" />
                </td>
          
            </tr>
            </table>
        <table class="data_list_table">
            <tr>
                <th>
                    分类编号
                </th>
                <th>
                分类名称
                </th>
                <th>
                    导航名称
                </th>
                <th class="style1">
                    网址
                </th>
                <th>
                    最后更新时间
                </th>
          <%--      <th>
                    父类型
                </th>
                <th>
                    是否禁用
                </th>--%>
                <th>
                    操作
                </th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr>
                        <td class="list_data_number">
                            <%# Eval("stid") %>
                        </td>
                          <td class="list_data_number">
                            <%# Eval("name") %>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("SiteName")%>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("SiteUrl")%>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("EditTime", "{0:yyyy-MM-dd HH:mm:ss}")%>
                        </td>
                   <%--     <td class="list_data_text">
                            <%# Eval("pid") %>
                        </td>
                        <td class="list_data_text">
                            <%# Eval("enable") %>
                        </td>--%>
                        <td class="list_data_ltext">
                 <%--           <a href='edit.aspx?id=<%# Eval("sid") %>'><img src="../images/bt_edit.gif" alt="修改" title="修改"  /></a>
                           <a href="editType.aspx?sid=<%# Eval("sid") %>"><img src="../images/bt_deal.gif" alt="设置分类" title="设置分类" /></a>--%>
                            <a href='deleteS.aspx?id=<%# Eval("id") %>&&sid=<%# Eval("sid")%>' onclick="return confirm('确定删除？')" ><img src="../images/bt_del.gif" alt="删除"  /> </a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <th colspan="6" class="pager">
                    <div class="pager">
                        
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server"  PageSize="30" 
                            UrlPaging="True" >
                        </webdiyer:AspNetPager>
                        
                    </div>
                </th>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>


